package com.example.administrator.express.model;


import android.os.Parcel;
import android.os.Parcelable;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName = "package")
public class Packageinfo implements Parcelable {


    /**
     * deliveryId : 10
     * deliveryTime : 2016-09-10 18:12:40
     * id : 11
     * receiveTime : 2016-09-10 18:12:21
     * receiverId : 10
     * signId : 10
     * signTime : 2016-09-10 18:12:48
     * sn : 10086
     * status : 3
     */
    @DatabaseField(columnName = "deliveryId")
    private int deliveryId;
    @DatabaseField(columnName = "deliveryTime")
    private String deliveryTime;
    @DatabaseField(columnName = "adress")
    private int id;
    @DatabaseField(columnName = "id",generatedId = true)
    private String receiveTime;
    @DatabaseField(columnName = "receiverId")
    private int receiverId;
    @DatabaseField(columnName = "signId")
    private int signId;
    @DatabaseField(columnName = "signTime")
    private String signTime;
    @DatabaseField(columnName = "sn")
    private int sn;
    @DatabaseField(columnName = "status")
    private int status;


    public int getDeliveryId() {
        return deliveryId;
    }

    public void setDeliveryId(int deliveryId) {
        this.deliveryId = deliveryId;
    }

    public String getDeliveryTime() {
        return deliveryTime;
    }

    public void setDeliveryTime(String deliveryTime) {
        this.deliveryTime = deliveryTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getReceiveTime() {
        return receiveTime;
    }

    public void setReceiveTime(String receiveTime) {
        this.receiveTime = receiveTime;
    }

    public int getReceiverId() {
        return receiverId;
    }

    public void setReceiverId(int receiverId) {
        this.receiverId = receiverId;
    }

    public int getSignId() {
        return signId;
    }

    public void setSignId(int signId) {
        this.signId = signId;
    }

    public String getSignTime() {
        return signTime;
    }

    public void setSignTime(String signTime) {
        this.signTime = signTime;
    }

    public int getSn() {
        return sn;
    }

    public void setSn(int sn) {
        this.sn = sn;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.deliveryId);
        dest.writeString(this.deliveryTime);
        dest.writeInt(this.id);
        dest.writeString(this.receiveTime);
        dest.writeInt(this.receiverId);
        dest.writeInt(this.signId);
        dest.writeString(this.signTime);
        dest.writeInt(this.sn);
        dest.writeInt(this.status);
    }

    public Packageinfo() {
    }

    protected Packageinfo(Parcel in) {
        this.deliveryId = in.readInt();
        this.deliveryTime = in.readString();
        this.id = in.readInt();
        this.receiveTime = in.readString();
        this.receiverId = in.readInt();
        this.signId = in.readInt();
        this.signTime = in.readString();
        this.sn = in.readInt();
        this.status = in.readInt();
    }

    public static final Parcelable.Creator<Packageinfo> CREATOR = new Parcelable.Creator<Packageinfo>() {
        @Override
        public Packageinfo createFromParcel(Parcel source) {
            return new Packageinfo(source);
        }

        @Override
        public Packageinfo[] newArray(int size) {
            return new Packageinfo[size];
        }
    };
}
